﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DreamIn.Structures.ServerDatabase.Entities;
using DreamIn.Structures.ServerDatabase.DataAccessLayer;

namespace DreamIn.Structures.ServerDatabase.BusinessLogic
{
    class PictureBL
    {
        internal List<PictureEntity> GetPictures()
        {
            PictureDAL pictureDAL = new PictureDAL();
            return pictureDAL.GetPictures();
        }
        internal void AddPicture(String path, int id_album)
        {
            PictureDAL pictureDAL = new PictureDAL();
            pictureDAL.AddPicture(path, id_album);
        }
        internal void DeletePicture(PictureEntity picture)
        {
            PictureDAL pictureDAL = new PictureDAL();
            pictureDAL.DeletePicture(picture);
        }
        internal void UpdatePicture(int id_picture,String path, int id_album)
        {
            PictureDAL pictureDAL = new PictureDAL();
            pictureDAL.UpdatePicture(id_picture, path, id_album);
        }
    }
}
